home *** CD-ROM | disk | FTP | other *** search
- WEB member Leppa #28 @5800
- Tuesday, April 7, 1992 7:24 pm
- ┌──────────────────────────────────────────────────────────────────────────┐
- │ Mod Name : LEPPA06.MOD │
- │ Versions : 4.20+ │
- │ Files Affected : VARDEC.H, MISCCMD.C, BBS.C │
- │ Difficulty : Block Copy & Few Lines │
- └──────────────────────────────────────────────────────────────────────────┘
-
- Description: Have you ever seen those nice mulit-sysop feedback mods??
- Well, I had this problem of my co-sysops leaving a lot. So I decieded
- to make a mod that would let me just configure who I wanted to be in
- that nice list. I also liked the feature of one of 'em that let you
- send E-mail to all the sysops in the list, so I added that to this one
- too. You can now configure the list, so whoever you want will be in
- it. It doesn't require any external menus, because it makes the list
- of names itself. I initally wrote this mod for WWIV 4.20 and now I'm
- using it on 4.21. It should work fine.
-
- ---------------------------------------------------------------------------
- Disclaimer: I have installed this mod on WWIV 4.20 and have been using it for
- about a month now, with no problems at all. I won't take any responsibility
- if it messes up your computer, however, please feel free to ask me for help,
- I can be reached by calling my board, Heroes BBS at (508) 842-2390 or at
- WWIVLink address 5@15806, or WWIVWeb address, 1@4. I will be happy to help
- you out.
- ---------------------------------------------------------------------------
-
- |-------------------|
- | Key: |
- |-------------------|
- | - Already exists |
- | = Change line |
- | + Add in line |
- | * Delete Line |
- |-------------------|
- STEP 1:
- In Vardec.H <I told you this mod was difficult> do the following:
-
- - float net_req_free; /* net free factor def 3 */
- - char res[31]; /* RESERVED */
- + int fbnums[10]; /* User Nums of Sysops */
- + numfb; /* Number of SysOps */
- -} statusrec;
-
- Ok, save Vardec.H and load MiscCmd.C
-
- STEP 2:
- In MiscCmd.C, add in these two voids at the end:
-
- /***********************************************************
- Begin Block Read For LEPPA06 Multi-Feedback Mod
- ***********************************************************/
- void feedback()
- {
- char s1[101],c;
- int i;
- userrec u;
-
- npr("\r\n\r\n\r\n3Feedback:\r\n\r\n");
- for (i=1;i<=status.numfb;i++) {
- read_user(status.fbnums[i],&u);
- sprintf(s1,"3%d. %s\r\n",i,nam(&u,status.fbnums[i]));
- npr(s1);
- }
- npr("3A. 1All of the above\r\n");
- npr("3Q. 1Quit Feedback\r\n");
- npr("\r\n3Your choice: ");
- c=onek("123456789AQ");
- if ((c <= '9') && (c > '0')) {
- i=c-'0';
- strcpy(irt,"Feedback");
- email(status.fbnums[i],0,0,0);
- } else {
- switch (c) {
- case 'A':
- status.fbnums[0]=status.fbnums[status.numfb];
- multimail(status.fbnums,status.numfb);
- return;
- case 'Q':
- npr("\r\n");
- return;
- }
- }
- }
-
- void cfgfeed()
- {
- int i;
- char c,s[40];
-
- while ((c!='Q') && (!hangup)) {
- npr("\r\n\r\nConfigure Feedback: \r\n");
- npr("3N 1- 3Number Feedback\r\n");
- npr("311..39 1- 3Configure Usernum\r\n");
- npr("Enter your choice: ");
- c=onek("N123456789Q");
- if (c=='Q') {
- return;
- } else if (c=='N') {
- npr("3Enter Number feedbacks: ");
- c=onek("123456789");
- status.numfb=c - '0';
- } else {
- i=c - '0';
- npr("3Enter user for feedback number %d: ",i);
- input(s,40);
- status.fbnums[i]=finduser(s);
- }
- }
- }
-
- Save MiscCmd.C and Load Up BBS.C
-
- STEP 3:
- In BBS.C Change the following lines:
- - send_email();
- - break;
- - case 'F':
- * strcpy(irt,"Feedback.");
- * irt_name[0]=0;
- * email(1,0,0,0);
- + feedback();
- - break;
- - case 'G':
- - helpl=28;
-
- STEP 4:
- Add the following lines into BBS.C:
- - if (strcmp(s,"UEDIT")==0) {
- - sysoplog("@ Ran Uedit");
- - uedit(usernum,0);
- - }
- + if (strcmp(s,"FEEDBACK")==0) {
- + cfgfeed();
- + }
- - if (strcmp(s,"STATUS")==0) {
- - prstatus();
- - }
-
- STEP 5:
- Make FCNS, or Add in the following lines in FCNS.H
-
- -void vote_question(int f, int i, int ii);
- -void vote();
- +void feedback();
- +void cfgfeed();
- -
- -
- -/* File: multmail.c */
-
- STEP 6:
- Compile the ENTIRE BBS (Because we've changed VARDEC.H) and grab a cup
- of coffee!
-
- STEP 7:
- If you use this mod, send me E-Mail at one of the following addresses, so I
- know that you're using my mod... <g>
- WWIVNet: LEPPA@5819
- WWIVLink: 5@15806
- WWIVWeb: 1@4
- Thanks a lot... and look for LEPPA07 to come out soon <Titlewars!>
-
- 7---1===3Leppa1===7---
-
- 9
- 95The 2BEARS CAVE BBS, 1The 3BEAST1 from the 3EAST6!
- 82WWIVweb 5@11 WOMRable 2WWIVnet 55800
- 72Let the BEAST in you LOOSE!!6!2!!
- 60